package commons.base.httpserver.example;

import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;

import commons.base.httpserver.SpringWebServer;


public class SpringExample {

	public static void main(String[] args) throws Exception {
//		System.setProperty(ConfigConstant.CONFIG_INFO_FILE_PATH_KEY, ResourceUtil.findConfigManagerInfo());
//		ConfigManager.getInstance();
//		LogUtil.initlog();
		
		// 使用spring构建依赖
		AnnotationConfigWebApplicationContext ctx = new AnnotationConfigWebApplicationContext();
		// 扫描普通bean
//		ctx.scan("");
		
//		ctx.refresh();
//		
//		SpringWebServer server = SpringWebServer.newGameServer();
//		server.setRootWebApplicationContext(ctx);
//		server.scanController();
//		server.start();

	}

}
